package cn.com.nes.mybatis.agent.templatedesign.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2023-09-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("h_housedesign")
public class HHousedesign  implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	
	@TableId(value = "id",type = IdType.AUTO)
	private Long id;
	/**
	 * 订单号
	 */
	@TableField("designid")
	private String designid;
	
	/**
	 * 订单状态 01申请  02已接单  03待审核  04审核不同过 05已发布
	 */
	@TableField("status")
	private String status;
	
	/**
	 * 档案号（新疆）
	 */
	@TableField("dah")
	private String dah;
	
	/**
	 * 户主姓名
	 */
	@TableField("name")
	private String name;
	
	/**
	 * 身份证号
	 */
	@TableField("cardno")
	private String cardno;
	
	/**
	 * 联系电话
	 */
	@TableField("phone")
	private String phone;
	
	/**
	 * 行政区划
	 */
	@TableField("xzqhdm")
	private String xzqhdm;
	
	/**
	 * 详细地址
	 */
	@TableField("address")
	private String address;
	
	/**
	 * 申请所属公司
	 */
	@TableField("companyid")
	private String companyid;
	
	/**
	 * 设备类型id
	 */
	@JsonProperty("sblx_id")
	@TableField("sblx_id")
	private String sblxId;
	
	@TableField("sbcj")
	private String sbcj;
	
	@TableField("sbxh")
	private String sbxh;
	
	/**
	 * 订单备注
	 */
	@TableField("memo")
	private String memo;
	
	/**
	 * 户型草图路径
	 */
	@TableField("sketchpath")
	private String sketchpath;
	
	/**
	 * 户型草图文件名
	 */
	@TableField("sketchfilename")
	private String sketchfilename;
	
	/**
	 * 申请时间
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("applytime")
	private Date applytime;
	
	/**
	 * 申请人
	 */
	@TableField("applyuser")
	private Long applyuser;
	
	/**
	 * 接单时间
	 */
	@TableField("receivingordertime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date receivingordertime;
	
	/**
	 * 设计人
	 */
	@TableField("receivinguser")
	private Long receivinguser;
	
	/**
	 * 设计完成时间
	 */
	@TableField("completetime")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date completetime;
	
	/**
	 * 房屋设计图路径
	 */
	@TableField("housedesignpath")
	private String housedesignpath;
	
	/**
	 * 房屋设计图文件名
	 */
	@TableField("housedesignfilename")
	private String housedesignfilename;
	
	/**
	 * 设备设计图路径
	 */
	@TableField("devicedesignpath")
	private String devicedesignpath;
	
	/**
	 * 设备设计图文件名
	 */
	@TableField("devicedesignfilename")
	private String devicedesignfilename;
	
	/**
	 * 审核人
	 */
	@TableField("checkuser")
	private Long checkuser;
	
	/**
	 * 审核结果
	 */
	@TableField("checkresult")
	private String checkresult;
	
	/**
	 * 审核时间
	 */
	@TableField("checktime")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date checktime;
	
	/**
	 * 审核意见
	 */
	@TableField("checkmemo")
	private String checkmemo;
	
	/**
	 * 是否删除
	 */
	@TableField("isdelete")
	private String isdelete;
	
	/**
	 * 创建时间
	 */
	@TableField("modifyTime")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date modifytime;
	
	//是否添加为模板库
	@TableField(exist = false)
	private Integer addTemplateTag;
	
	@TableField("housemodelid")
	private Integer housemodelid;
	
	@TableField("sbsgjh_id")
	@JsonProperty("sbsgjh_id")
	private Long sbsgjhId;
}
